const todoList = [{
    title: '上班打卡',
    status: 'Waiting'
}, {
    title: '饿了打饭',
    status: 'Doing'
},{
    title: '困了打盹',
    status: 'Finished'
}]
const myUL = document.getElementById('myUL');
const showlist =()=>{
    myUL.innerHTML="";
    todoList.forEach((todo,index) =>{
    const li = `<li>${ todo.title }学习打代码<span class="close">x</span></li>`
    myUL.innerHTML += li
    })
}

(_=>{
    showlist();
})()